import { IsArray, IsNotEmpty } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class UserAddSubUserDto {
    @ApiProperty({ description: "用户id数组" })
    @IsArray({ message: "userIds 类型错误，正确类型 number[]" })
    userIds: number[];
    
    @ApiProperty({ description: "用户id" })
    @IsNotEmpty({ message: "userId 不能为空" })
    userId: string;
}
